package com.Day1009;

import java.io.File;
import java.io.FileReader;

public class FileReaders {

    public static void main(String[] args) throws Exception {
        File file = new File("F:\\Java\\c.txt");
        FileReader fileReader = new FileReader(file);
        char[] temp = new char[1024];
        StringBuffer stringBuffer = new StringBuffer();
        while (fileReader.read(temp) != -1){

            stringBuffer.append(temp);
        }
        System.out.println(stringBuffer.toString());
        String version = System.getProperty("java.version");
        //String encoding = System.getProperty("")
        System.out.println(version);
        fileReader.close();
    }
}
